Pro D3.js by Marcos Iglesias

Pro D3.js by Marcos Iglesias

Author:Marcos Iglesias
Language: eng
Format: epub
ISBN: 9781484252031
Publisher: Apress


Getting Set Up to Contribute

To start contributing to Britecharts, we need to set up our machine to develop with the library. In this section, we learn what is a project “fork” and how to create it. We also create a branch and run the project documentation, demos, and sandbox in our development machine.

Setting Up the Repository

The first thing we do to start developing in Britecharts is the setup of our copy of the library. With this copy, we can download the latest changes in the code and propose changes to the original project. We do this by creating a “fork,” that is, a copy of Britecharts linked to our personal GitHub account.

In the rest of the chapter, I assume you have a GitHub account, although if you don’t, GitHub will prompt you to create one. We start by creating our fork of Britecharts by clicking the “fork” button at the top right corner of the repository page ( https://github.com/eventbrite/britecharts ).

Then, we clone the repository in our machine by clicking the “Clone and download” green button and copying the URL. Now we can open a new terminal window and type “git clone https://github.com/<OUR_HANDLE>/britecharts.git ” to create a folder with the latest version of Britecharts.

After downloading, we can get into the repository by typing “cd britecharts”. We need to pull the library dependencies by running “yarn install”. If you don’t have yarn in your machine, follow the instructions in their site ( https://yarnpkg.com/en/docs/install ) to download and install this package manager utility. Yarn requires Node.js, and at the time of writing, we are using version 12.2.0, that you can find in https://nodejs.org/en/download/ .



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.